package com.lzp.appexp

import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import java.io.BufferedReader
import java.io.InputStreamReader
import java.lang.reflect.InvocationHandler
import java.lang.reflect.Method
import java.lang.reflect.Proxy

/**
 * @describe:
 * @Author: lixiaopeng
 * @Date: 12/18/20
 */

var count = 0

/*fun main() {
    val num = intArrayOf(3, 45, 78, 64, 52, 11, 64, 55, 99, 18)
    println("未排序 ${array2String(num)}")

    QuickSort(num, 0, num.size - 1)

    println("排序后 ${array2String(num)}")
}*/

/*
fun main() {
    //读取连接设备
    val process = Runtime.getRuntime().exec("adb devices")
    val devices = BufferedReader(InputStreamReader(process.inputStream))
    val stringBuilder = StringBuilder()
    var line: String? = null
    while (devices.readLine().apply { line = this } != null) {
        stringBuilder.append("$line\n")
    }
    println(stringBuilder.toString())

    //读取安装的应用
    val process2 = Runtime.getRuntime().exec("adb shell pm list packages")
    val packages = BufferedReader(InputStreamReader(process2.inputStream))
    val sb = StringBuilder()
    var line2: String? = null
    while (packages.readLine().apply { line2 = this } != null) {
        sb.append("$line2\n")
    }
    println(sb.toString())
}
*/
class AAA{}

fun main() {

}

class ObjParser(){
    val responseJson = ""
    fun getResult(){

    }
}

inline fun <reified T> converJson(json:String):T?{
    return null
}